package com.itheima.common.Com;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author 86188
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class  Dish {
    //分类编号
    private String id;
    //类型 1.菜品分类 2.套餐分类
    private Integer type;
    //name
    private String name;
    //所属分类
    private String categoryId;
    //菜品价格
    private Integer price;
    //状态码 0失败 1成功
    private String code;
    //配图
    private String image;
    //描述
    private String description;
    //0禁用 1 启用
    private Integer status;
    //顺序
    private Integer sort;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //创建人
    private String createUser;
    //修改人
    private String updateUser;
    //分类名
    private String categoryName;

    private Integer copies;

}
